package com.ojoin.trade.common_core.web.dao;

import java.util.List;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserExceptionorder;

/**
 * Created with IntelliJ IDEA. User: Administrator Date: 15-11-16 Time: 下午6:09
 * To change this template use File | Settings | File Templates.
 */
public interface TbMerchantuserExceptionorderDao extends
		BaseDao<TbMerchantuserExceptionorder> {

	/**
	 * 查询指定九盈用户的异常订单记录
	 * @param joinuserid
	 * @return
	 * @throws BusinessException
	 */
	public List<TbMerchantuserExceptionorder> queryExceOrderByJoinuserID(
			int joinuserid) throws BusinessException;

	/**
	 * 更新异常订单记录
	 * @param order
	 * @return
	 * @throws BusinessException
	 */
	public int updateVOById(TbMerchantuserExceptionorder order)
			throws BusinessException;

	/**
	 * 更新异常订单记录
	 * @param order
	 * @return
	 * @throws BusinessException
	 */
	public int updateVOByOrderId(TbMerchantuserExceptionorder order)
			throws BusinessException;
	
	/**
	 * 根据订单流水号查询对应异常订单信息
	 * @param orderid
	 * @return
	 * @throws BusinessException
	 */
	public TbMerchantuserExceptionorder queryExceOrderByOrderID(String orderid) 
			throws BusinessException;
}
